Import 'normal' str to FF9 CD4
Replace whole STR in FF9 is not needed. Replace parts of ending movie is enough.
(replace only frames, you want edit)
1. copy here STR files for import
    STR files must have name with FRAME_START.str
    FRAME_START is position of frame start, begin with 0
    if you want import to 1st frame, than name must be 0.str (0000.str,...)
    if you want import to 1111th frame, than name must be 1110.str
2. copy FF9 CD4 here, name must be *CD4*.bin
    ! make backup of this FF9 CD4 file, it can be damaged by this!
    for example : ff9_cd4.bin, final fantasy f9 cd4.bin, ...
    
3. run !importStrEndingToCD4.bat
    (there will be errors, if ff9 video frames not found in given bin file
     or you are trying import frames after movie end
     ERROR: chunks versions do not match: ff9str 0, strfile 2 ...)
4. test imported movie in game



Others:

!importStrToCD1.bat
imports first found str movie to animation on CD1 before menu.
in !importStrToCD1.bat you can change on which position you want import movie
 by editing number after
  set strPosition=0
  for example change to 'set strPosition=1110', ...
you can set file name for import, by setting name
  edit 'set strFile=' to 'set strFile=MY_STR_NAME.str'
  for example change to 'set strFile=1178.str'


Extracting movies from FF9
use jpsxdec
1. copy FF9 CD4 bin file to extractFF9Ending folder
2. run extractStrEndingToCD4.bat
    this will create ff9_CD4_ending_rawCZ.bin
3. start jpsxdec, open ff9_CD4_ending_rawCZ.bin
   (you can open whole FF9 CD4, but I got error on it)
   (kenai.com/projects/jpsxdec/pages/Home)
4. click on Generate Index
5. select file, click on Save...
   - save at format you need for editing (AVI/Separate Images...)
   - preferably choose Decode quality: High quality
   - uncheck Audio, because you do not need it
   - do not save as jpegs or compressed avi


Creating STR
1. input files are uncompressed avi, same size as original ff9 movies
   fps does not matter, but it must have same count of frames, as original video
2. use avi2str, run mc32.exe
   (consolecopyworld.com/psx/psx_utils_graphics.shtml)
3. in 'Conversion' window, select on left AVI file, on right select 'str (MDEC)' type of file
4. click on Attributes button, setting should be:
    Sound unchecked (no sound)
    MDEC Image version - version 2
    Custom checked
      Maximum frame size 9 frames
      Fixed Frame Size
5. click on 'Go', after a while should be STR file generated
   